package com.yixin.hospital.entity.vo;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import lombok.ToString;

import java.util.Date;

@Data
@ToString
public class DrugDepositoryDrugVo {

    private Long id;
    private Long depositoryId;
    private String depositoryName;
    private String drugCode;
    private String drugName;
    private String drugCommonName;
    private String drugSpecs;
    private String outerUnit;
    private String innerUnit;
    private Integer innerNum;
    private String drugForm;
    private Integer num;
    private Integer subNum;
    private Integer inventory;
    private Integer doneInventory;
    private Integer subInventory;
    private Integer doneSubInventory;
    @JsonFormat(pattern = "yyyy-MM-dd")
    private Date productTime;
    @JsonFormat(pattern = "yyyy-MM-dd")
    private Date expiration;
    private Integer count;
    private Integer minPurchaseNum;
    private Integer buyCycle;
    private Integer sellMethod;
    private Integer isTop;
    private Integer status;

    private Boolean nearExpiration = false;
}
